// import { useHistory } from 'umi';
// todo 做编程式导航，可以直接解构history对象
import { history } from 'umi';

const NotFound = () => {
  // const history = useHistory();

  const fn = () => {
    history.push('/home');
  };

  return (
    <div>
      404 not found ...<button onClick={fn}>btn</button>
    </div>
  );
};

export default NotFound;
